package com.ffyc.cms.service;

import com.ffyc.cms.dao.AdminDao;
import com.ffyc.cms.model.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class AdminService {

    @Autowired
    AdminDao adminDao;

    @Transactional
    public void updateAdmin(Admin admin){
        adminDao.updateAdmin(admin);
    }

    @Transactional
    public void upadtePwd(Admin admin){
        adminDao.updatePwd(admin);
    }
}
